
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module mwavepy.network</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="mwavepy.html"><font color="#ffffff">mwavepy</font></a>.network</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/alex/docs/python/path/mwavepy/network.py">/home/alex/docs/python/path/mwavepy/network.py</a></font></td></tr></table>
    <p><tt>Provides&nbsp;the&nbsp;<a href="#Network">Network</a>&nbsp;class&nbsp;and&nbsp;related&nbsp;functions.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="mwavepy.mathFunctions.html">mwavepy.mathFunctions</a><br>
<a href="numpy.html">numpy</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="pylab.html">pylab</a><br>
</td><td width="25%" valign=top><a href="scipy.stats.html">scipy.stats</a><br>
<a href="mwavepy.touchstone.html">mwavepy.touchstone</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="mwavepy.network.html#Network">Network</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Network">class <strong>Network</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Represents&nbsp;a&nbsp;n-port&nbsp;microwave&nbsp;network.<br>
&nbsp;<br>
the&nbsp;most&nbsp;fundemental&nbsp;properties&nbsp;are:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s:&nbsp;scattering&nbsp;matrix.&nbsp;a&nbsp;kxnxn&nbsp;complex&nbsp;matrix&nbsp;where&nbsp;'n'&nbsp;is&nbsp;number<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;ports&nbsp;of&nbsp;network.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;z0:&nbsp;characteristic&nbsp;impedance<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f:&nbsp;frequency&nbsp;vector&nbsp;in&nbsp;Hz.&nbsp;see&nbsp;also&nbsp;frequency,&nbsp;which&nbsp;is&nbsp;a<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frequency&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;(see&nbsp;help&nbsp;on&nbsp;this&nbsp;class&nbsp;for&nbsp;more&nbsp;info)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
The&nbsp;following&nbsp;operators&nbsp;are&nbsp;defined&nbsp;as&nbsp;follows:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+'&nbsp;:&nbsp;element-wise&nbsp;addition&nbsp;of&nbsp;the&nbsp;s-matrix<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'-'&nbsp;:&nbsp;element-wise&nbsp;subtraction&nbsp;of&nbsp;the&nbsp;s-matrix<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'*'&nbsp;:&nbsp;element-wise&nbsp;multiplication&nbsp;of&nbsp;the&nbsp;s-matrix<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'/'&nbsp;:&nbsp;element-wise&nbsp;division&nbsp;of&nbsp;the&nbsp;s-matrix<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'**':&nbsp;cascading&nbsp;of&nbsp;2-port&nbsp;networks<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'//':&nbsp;de-embdeding&nbsp;of&nbsp;one&nbsp;network&nbsp;from&nbsp;the&nbsp;other.<br>
&nbsp;<br>
various&nbsp;other&nbsp;network&nbsp;properties&nbsp;are&nbsp;accesable&nbsp;as&nbsp;well&nbsp;as&nbsp;plotting<br>
routines&nbsp;are&nbsp;also&nbsp;defined&nbsp;for&nbsp;convenience,&nbsp;<br>
&nbsp;<br>
most&nbsp;properties&nbsp;are&nbsp;derived&nbsp;from&nbsp;the&nbsp;specifications&nbsp;given&nbsp;for<br>
touchstone&nbsp;files.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Network-__add__"><strong>__add__</strong></a>(self, other)</dt><dd><tt>element-wise&nbsp;addition&nbsp;of&nbsp;s-matrix</tt></dd></dl>

<dl><dt><a name="Network-__div__"><strong>__div__</strong></a>(self, other)</dt><dd><tt>element-wise&nbsp;complex&nbsp;division&nbsp;&nbsp;of&nbsp;s-matrix</tt></dd></dl>

<dl><dt><a name="Network-__eq__"><strong>__eq__</strong></a>(self, other)</dt></dl>

<dl><dt><a name="Network-__floordiv__"><strong>__floordiv__</strong></a>(self, other)</dt><dd><tt>&nbsp;implements&nbsp;de-embeding&nbsp;another&nbsp;network[s],&nbsp;from&nbsp;this&nbsp;network<br>
&nbsp;<br>
see&nbsp;de_embed</tt></dd></dl>

<dl><dt><a name="Network-__getitem__"><strong>__getitem__</strong></a>(self, key)</dt><dd><tt>returns&nbsp;a&nbsp;<a href="#Network">Network</a>&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;at&nbsp;a&nbsp;given&nbsp;single&nbsp;frequency</tt></dd></dl>

<dl><dt><a name="Network-__init__"><strong>__init__</strong></a>(self, touchstone_file<font color="#909090">=None</font>, name<font color="#909090">=None</font>)</dt><dd><tt>constructor.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file:&nbsp;if&nbsp;given&nbsp;will&nbsp;load&nbsp;information&nbsp;from&nbsp;touchstone&nbsp;file<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name:&nbsp;name&nbsp;of&nbsp;this&nbsp;network.</tt></dd></dl>

<dl><dt><a name="Network-__mul__"><strong>__mul__</strong></a>(self, a)</dt><dd><tt>element-wise&nbsp;complex&nbsp;multiplication&nbsp;&nbsp;of&nbsp;s-matrix</tt></dd></dl>

<dl><dt><a name="Network-__ne__"><strong>__ne__</strong></a>(self, other)</dt></dl>

<dl><dt><a name="Network-__pow__"><strong>__pow__</strong></a>(self, other)</dt><dd><tt>implements&nbsp;cascading&nbsp;this&nbsp;network&nbsp;with&nbsp;another&nbsp;network</tt></dd></dl>

<dl><dt><a name="Network-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>

<dl><dt><a name="Network-__str__"><strong>__str__</strong></a>(self)</dt></dl>

<dl><dt><a name="Network-__sub__"><strong>__sub__</strong></a>(self, other)</dt><dd><tt>element-wise&nbsp;subtraction&nbsp;of&nbsp;s-matrix</tt></dd></dl>

<dl><dt><a name="Network-add_noise_polar"><strong>add_noise_polar</strong></a>(self, mag_dev, phase_dev, **kwargs)</dt><dd><tt>adds&nbsp;a&nbsp;complex&nbsp;zero-mean&nbsp;gaussian&nbsp;white-noise&nbsp;signal&nbsp;of&nbsp;given<br>
standard&nbsp;deviations&nbsp;for&nbsp;magnitude&nbsp;and&nbsp;phase<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mag_mag:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;magnitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phase_dev:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;phase&nbsp;[in&nbsp;degrees]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_ports:&nbsp;number&nbsp;of&nbsp;ports.&nbsp;defualt&nbsp;to&nbsp;1<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nothing</tt></dd></dl>

<dl><dt><a name="Network-add_noise_polar_flatband"><strong>add_noise_polar_flatband</strong></a>(self, mag_dev, phase_dev, **kwargs)</dt><dd><tt>adds&nbsp;a&nbsp;flatband&nbsp;complex&nbsp;zero-mean&nbsp;gaussian&nbsp;white-noise&nbsp;signal&nbsp;of<br>
given&nbsp;standard&nbsp;deviations&nbsp;for&nbsp;magnitude&nbsp;and&nbsp;phase<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mag_mag:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;magnitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phase_dev:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;phase&nbsp;[in&nbsp;degrees]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_ports:&nbsp;number&nbsp;of&nbsp;ports.&nbsp;defualt&nbsp;to&nbsp;1<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nothing</tt></dd></dl>

<dl><dt><a name="Network-change_frequency"><strong>change_frequency</strong></a>(self, new_frequency, **kwargs)</dt></dl>

<dl><dt><a name="Network-flip"><strong>flip</strong></a>(self)</dt><dd><tt>swaps&nbsp;the&nbsp;ports&nbsp;of&nbsp;a&nbsp;two&nbsp;port</tt></dd></dl>

<dl><dt><a name="Network-interpolate"><strong>interpolate</strong></a>(self, new_frequency, **kwargs)</dt><dd><tt>calculates&nbsp;an&nbsp;interpolated&nbsp;network.&nbsp;defualt&nbsp;interpolation&nbsp;type<br>
is&nbsp;linear.&nbsp;see&nbsp;notes&nbsp;about&nbsp;other&nbsp;interpolation&nbsp;types<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;new_frequency:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**kwargs:&nbsp;passed&nbsp;to&nbsp;scipy.interpolate.interp1d&nbsp;initializer.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result:&nbsp;an&nbsp;interpolated&nbsp;<a href="#Network">Network</a><br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;usefule&nbsp;keyward&nbsp;for&nbsp;&nbsp;scipy.interpolate.interp1d:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;kind&nbsp;:&nbsp;str&nbsp;or&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Specifies&nbsp;the&nbsp;kind&nbsp;of&nbsp;interpolation&nbsp;as&nbsp;a&nbsp;string&nbsp;('linear',<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'nearest',&nbsp;'zero',&nbsp;'slinear',&nbsp;'quadratic,&nbsp;'cubic')&nbsp;or&nbsp;as&nbsp;an&nbsp;integer<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;specifying&nbsp;the&nbsp;order&nbsp;of&nbsp;the&nbsp;spline&nbsp;interpolator&nbsp;to&nbsp;use.</tt></dd></dl>

<dl><dt><a name="Network-multiply_noise"><strong>multiply_noise</strong></a>(self, mag_dev, phase_dev, **kwargs)</dt><dd><tt>multiplys&nbsp;a&nbsp;complex&nbsp;bivariate&nbsp;gaussian&nbsp;white-noise&nbsp;signal<br>
of&nbsp;given&nbsp;standard&nbsp;deviations&nbsp;for&nbsp;magnitude&nbsp;and&nbsp;phase.&nbsp;&nbsp;&nbsp;<br>
magnitude&nbsp;mean&nbsp;is&nbsp;1,&nbsp;phase&nbsp;mean&nbsp;is&nbsp;0&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mag_dev:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;magnitude<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phase_dev:&nbsp;standard&nbsp;deviation&nbsp;of&nbsp;phase&nbsp;[in&nbsp;degrees]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_ports:&nbsp;number&nbsp;of&nbsp;ports.&nbsp;defualt&nbsp;to&nbsp;1<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;nothing</tt></dd></dl>

<dl><dt><a name="Network-nudge"><strong>nudge</strong></a>(self, amount<font color="#909090">=1e-12</font>)</dt><dd><tt>perturb&nbsp;s-parameters&nbsp;by&nbsp;small&nbsp;amount.&nbsp;this&nbsp;is&nbsp;usefule&nbsp;to&nbsp;work-around<br>
numerical&nbsp;bugs.<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;amount:&nbsp;amount&nbsp;to&nbsp;add&nbsp;to&nbsp;s&nbsp;parameters<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;na</tt></dd></dl>

<dl><dt><a name="Network-plot_passivity"><strong>plot_passivity</strong></a>(self, port<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;passivity&nbsp;of&nbsp;a&nbsp;network,&nbsp;possible&nbsp;for&nbsp;a&nbsp;specific<br>
port.&nbsp;see&nbsp;the&nbsp;property&nbsp;'passivity'&nbsp;for&nbsp;more&nbsp;information.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;port:&nbsp;list&nbsp;of&nbsp;ports[ints]&nbsp;to&nbsp;plot&nbsp;passivity&nbsp;for&nbsp;[None]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_polar_generic"><strong>plot_polar_generic</strong></a>(self, attribute_r, attribute_theta, m<font color="#909090">=0</font>, n<font color="#909090">=0</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, **kwargs)</dt><dd><tt>generic&nbsp;plotting&nbsp;function&nbsp;for&nbsp;plotting&nbsp;a&nbsp;<a href="#Network">Network</a>'s&nbsp;attribute<br>
in&nbsp;polar&nbsp;form<br>
&nbsp;<br>
&nbsp;<br>
takes:</tt></dd></dl>

<dl><dt><a name="Network-plot_s_all_db"><strong>plot_s_all_db</strong></a>(self, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;all&nbsp;s&nbsp;parameters&nbsp;in&nbsp;log&nbsp;magnitude<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_complex"><strong>plot_s_complex</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;on&nbsp;complex&nbsp;plane<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_db"><strong>plot_s_db</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;magnitude&nbsp;of&nbsp;the&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n<br>
in&nbsp;log&nbsp;magnitude<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_deg"><strong>plot_s_deg</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;phase&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;in<br>
degrees<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_deg_unwrap"><strong>plot_s_deg_unwrap</strong></a> = <a href="#Network-plot_s_deg_unwrapped">plot_s_deg_unwrapped</a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt></dl>

<dl><dt><a name="Network-plot_s_deg_unwrapped"><strong>plot_s_deg_unwrapped</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;phase&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;in<br>
unwrapped&nbsp;degrees<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_im"><strong>plot_s_im</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;imaginary&nbsp;part&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n<br>
&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_mag"><strong>plot_s_mag</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;magnitude&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n<br>
not&nbsp;in&nbsp;&nbsp;magnitude<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_polar"><strong>plot_s_polar</strong></a>(self, m<font color="#909090">=0</font>, n<font color="#909090">=0</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;in&nbsp;polar&nbsp;form<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_rad"><strong>plot_s_rad</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;phase&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;in<br>
radians<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_rad_unwrapped"><strong>plot_s_rad_unwrapped</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;phase&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;in<br>
unwrapped&nbsp;radians<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_re"><strong>plot_s_re</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;real&nbsp;part&nbsp;of&nbsp;a&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n<br>
&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_s_smith"><strong>plot_s_smith</strong></a>(self, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, r<font color="#909090">=1</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, chart_type<font color="#909090">='z'</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;the&nbsp;scattering&nbsp;parameter&nbsp;of&nbsp;indecies&nbsp;m,&nbsp;n&nbsp;on&nbsp;smith&nbsp;chart<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;-&nbsp;first&nbsp;index,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;-&nbsp;second&nbsp;indext,&nbsp;int<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;r&nbsp;-&nbsp;&nbsp;radius&nbsp;of&nbsp;smith&nbsp;chart<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ax&nbsp;-&nbsp;matplotlib.axes&nbsp;<a href="__builtin__.html#object">object</a>&nbsp;to&nbsp;plot&nbsp;on,&nbsp;used&nbsp;in&nbsp;case&nbsp;you<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;want&nbsp;to&nbsp;update&nbsp;an&nbsp;existing&nbsp;plot.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;show_legend:&nbsp;boolean,&nbsp;to&nbsp;turn&nbsp;legend&nbsp;show&nbsp;legend&nbsp;of&nbsp;not<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;chart_type:&nbsp;string&nbsp;determining&nbsp;countour&nbsp;type.&nbsp;options&nbsp;are:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'z':&nbsp;impedance&nbsp;contours&nbsp;(default)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'y':&nbsp;admittance&nbsp;contours<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs&nbsp;-&nbsp;passed&nbsp;to&nbsp;the&nbsp;matplotlib.plot&nbsp;command</tt></dd></dl>

<dl><dt><a name="Network-plot_vs_frequency_generic"><strong>plot_vs_frequency_generic</strong></a>(self, attribute, y_label<font color="#909090">=None</font>, m<font color="#909090">=None</font>, n<font color="#909090">=None</font>, ax<font color="#909090">=None</font>, show_legend<font color="#909090">=True</font>, **kwargs)</dt><dd><tt>generic&nbsp;plotting&nbsp;function&nbsp;for&nbsp;plotting&nbsp;a&nbsp;<a href="#Network">Network</a>'s&nbsp;attribute<br>
vs&nbsp;frequency.<br>
&nbsp;<br>
&nbsp;<br>
takes:</tt></dd></dl>

<dl><dt><a name="Network-read_touchstone"><strong>read_touchstone</strong></a>(self, filename)</dt><dd><tt>loads&nbsp;&nbsp;values&nbsp;from&nbsp;a&nbsp;touchstone&nbsp;file.&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filename&nbsp;-&nbsp;touchstone&nbsp;file&nbsp;name,&nbsp;string.&nbsp;<br>
&nbsp;<br>
note:&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ONLY&nbsp;'S'&nbsp;FORMAT&nbsp;SUPORTED&nbsp;AT&nbsp;THE&nbsp;MOMENT&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all&nbsp;work&nbsp;is&nbsp;tone&nbsp;in&nbsp;the&nbsp;touchstone&nbsp;class.</tt></dd></dl>

<dl><dt><a name="Network-write_touchstone"><strong>write_touchstone</strong></a>(self, filename<font color="#909090">=None</font>, dir<font color="#909090">='./'</font>)</dt><dd><tt>write&nbsp;a&nbsp;touchstone&nbsp;file&nbsp;representing&nbsp;this&nbsp;network.&nbsp;&nbsp;the&nbsp;only&nbsp;<br>
format&nbsp;supported&nbsp;at&nbsp;the&nbsp;moment&nbsp;is&nbsp;:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HZ&nbsp;S&nbsp;RI&nbsp;<br>
&nbsp;<br>
takes:&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filename:&nbsp;a&nbsp;string&nbsp;containing&nbsp;filename&nbsp;without&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;extension[None].&nbsp;if&nbsp;'None',&nbsp;then&nbsp;will&nbsp;use&nbsp;the&nbsp;network's&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name.&nbsp;if&nbsp;this&nbsp;is&nbsp;empty,&nbsp;then&nbsp;throws&nbsp;an&nbsp;error.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dir:&nbsp;the&nbsp;directory&nbsp;to&nbsp;save&nbsp;the&nbsp;file&nbsp;in.&nbsp;[string].&nbsp;Defaults&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to&nbsp;'./'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;the&nbsp;future&nbsp;could&nbsp;make&nbsp;possible&nbsp;use&nbsp;of&nbsp;the&nbsp;touchtone&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class,&nbsp;but&nbsp;at&nbsp;the&nbsp;moment&nbsp;this&nbsp;would&nbsp;not&nbsp;provide&nbsp;any&nbsp;benefit&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as&nbsp;it&nbsp;has&nbsp;not&nbsp;set_&nbsp;functions.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>f</strong></dt>
<dd><tt>the&nbsp;frequency&nbsp;vector&nbsp;for&nbsp;the&nbsp;network,&nbsp;in&nbsp;Hz.</tt></dd>
</dl>
<dl><dt><strong>frequency</strong></dt>
<dd><tt>returns&nbsp;a&nbsp;Frequency&nbsp;object,&nbsp;see&nbsp;&nbsp;frequency.py</tt></dd>
</dl>
<dl><dt><strong>inv</strong></dt>
<dd><tt>a&nbsp;network&nbsp;representing&nbsp;inverse&nbsp;s-parameters,&nbsp;for&nbsp;de-embeding</tt></dd>
</dl>
<dl><dt><strong>number_of_ports</strong></dt>
<dd><tt>the&nbsp;number&nbsp;of&nbsp;ports&nbsp;the&nbsp;network&nbsp;has.</tt></dd>
</dl>
<dl><dt><strong>passivity</strong></dt>
<dd><tt>&nbsp;passivity&nbsp;metric&nbsp;for&nbsp;a&nbsp;multi-port&nbsp;network.&nbsp;It&nbsp;returns<br>
a&nbsp;matrix&nbsp;who's&nbsp;diagonals&nbsp;are&nbsp;equal&nbsp;to&nbsp;the&nbsp;total&nbsp;power&nbsp;<br>
received&nbsp;at&nbsp;all&nbsp;ports,&nbsp;normalized&nbsp;to&nbsp;the&nbsp;power&nbsp;at&nbsp;a&nbsp;single<br>
excitement&nbsp;&nbsp;port.<br>
&nbsp;<br>
mathmatically,&nbsp;this&nbsp;is&nbsp;a&nbsp;test&nbsp;for&nbsp;unitary-ness&nbsp;of&nbsp;the&nbsp;<br>
s-parameter&nbsp;matrix.&nbsp;<br>
&nbsp;<br>
for&nbsp;two&nbsp;port&nbsp;this&nbsp;is&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(&nbsp;|S11|^2&nbsp;+&nbsp;|S21|^2,&nbsp;|S22|^2+|S12|^2)<br>
in&nbsp;general&nbsp;it&nbsp;is&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S.H&nbsp;*&nbsp;S<br>
where&nbsp;H&nbsp;is&nbsp;conjugate&nbsp;transpose&nbsp;of&nbsp;S,&nbsp;and&nbsp;*&nbsp;is&nbsp;dot&nbsp;product<br>
&nbsp;<br>
note:<br>
see&nbsp;more&nbsp;at,<br>
<a href="http://en.wikipedia.org/wiki/Scattering_parameters#Lossless_networks">http://en.wikipedia.org/wiki/Scattering_parameters#Lossless_networks</a></tt></dd>
</dl>
<dl><dt><strong>s</strong></dt>
<dd><tt>The&nbsp;scattering&nbsp;parameter&nbsp;matrix.<br>
&nbsp;<br>
s-matrix&nbsp;has&nbsp;shape&nbsp;fxnxn,&nbsp;<br>
where;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;f&nbsp;is&nbsp;frequency&nbsp;axis&nbsp;and,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n's&nbsp;are&nbsp;port&nbsp;indicies</tt></dd>
</dl>
<dl><dt><strong>s11</strong></dt>
</dl>
<dl><dt><strong>s12</strong></dt>
</dl>
<dl><dt><strong>s21</strong></dt>
</dl>
<dl><dt><strong>s22</strong></dt>
</dl>
<dl><dt><strong>s_db</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;magnitude&nbsp;of&nbsp;the&nbsp;s-parameters,&nbsp;in&nbsp;dB<br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dB&nbsp;is&nbsp;calculated&nbsp;by&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20*log10(|s|)</tt></dd>
</dl>
<dl><dt><strong>s_deg</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;phase&nbsp;of&nbsp;the&nbsp;s-parameters,&nbsp;in&nbsp;radians</tt></dd>
</dl>
<dl><dt><strong>s_deg_unwrap</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;unwrapped&nbsp;phase&nbsp;of&nbsp;the&nbsp;s-paramerts,&nbsp;in&nbsp;degrees</tt></dd>
</dl>
<dl><dt><strong>s_im</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;imaginary&nbsp;part&nbsp;of&nbsp;the&nbsp;s-parameters.</tt></dd>
</dl>
<dl><dt><strong>s_mag</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;magnitude&nbsp;of&nbsp;the&nbsp;s-parameters.</tt></dd>
</dl>
<dl><dt><strong>s_quad</strong></dt>
<dd><tt>this&nbsp;is&nbsp;like&nbsp;a&nbsp;arc-length,&nbsp;its&nbsp;<br>
s_quad&nbsp;=&nbsp;s_rad&nbsp;*&nbsp;s_mag&nbsp;<br>
&nbsp;<br>
used&nbsp;in&nbsp;calculating&nbsp;differences&nbsp;in&nbsp;phase,&nbsp;but&nbsp;in&nbsp;units&nbsp;of&nbsp;distance</tt></dd>
</dl>
<dl><dt><strong>s_rad</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;phase&nbsp;of&nbsp;the&nbsp;s-parameters,&nbsp;in&nbsp;radians.</tt></dd>
</dl>
<dl><dt><strong>s_rad_unwrap</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;unwrapped&nbsp;phase&nbsp;of&nbsp;the&nbsp;s-parameters,&nbsp;in&nbsp;radians.</tt></dd>
</dl>
<dl><dt><strong>s_re</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;real&nbsp;part&nbsp;of&nbsp;the&nbsp;s-parameters.</tt></dd>
</dl>
<dl><dt><strong>t</strong></dt>
<dd><tt>returns&nbsp;the&nbsp;t-parameters,&nbsp;which&nbsp;are&nbsp;also&nbsp;known&nbsp;as&nbsp;wave&nbsp;cascading<br>
matrix.</tt></dd>
</dl>
<dl><dt><strong>y</strong></dt>
</dl>
<dl><dt><strong>z0</strong></dt>
<dd><tt>the&nbsp;characteristic&nbsp;impedance&nbsp;of&nbsp;the&nbsp;network.<br>
&nbsp;<br>
z0&nbsp;can&nbsp;be&nbsp;may&nbsp;be&nbsp;a&nbsp;number,&nbsp;or&nbsp;numpy.ndarray&nbsp;of&nbsp;shape&nbsp;n&nbsp;or&nbsp;fxn.</tt></dd>
</dl>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-average"><strong>average</strong></a>(list_of_networks)</dt><dd><tt>calculates&nbsp;the&nbsp;average&nbsp;network&nbsp;from&nbsp;a&nbsp;list&nbsp;of&nbsp;Networks.&nbsp;<br>
this&nbsp;is&nbsp;complex&nbsp;average&nbsp;of&nbsp;the&nbsp;s-parameters&nbsp;for&nbsp;a&nbsp;&nbsp;list&nbsp;of&nbsp;Networks<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list_of_networks:&nbsp;a&nbsp;list&nbsp;of&nbsp;Networks<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk:&nbsp;the&nbsp;resultant&nbsp;averaged&nbsp;<a href="#Network">Network</a>&nbsp;[mwavepy.<a href="#Network">Network</a>]</tt></dd></dl>
 <dl><dt><a name="-cascade"><strong>cascade</strong></a>(a, b)</dt><dd><tt>DEPRECATED.&nbsp;see&nbsp;<a href="#-connect_s">connect_s</a>()&nbsp;instead.<br>
&nbsp;<br>
cascade&nbsp;two&nbsp;s-matricies&nbsp;together.<br>
&nbsp;<br>
a's&nbsp;port&nbsp;2&nbsp;==&nbsp;b's&nbsp;port&nbsp;1<br>
&nbsp;<br>
if&nbsp;you&nbsp;want&nbsp;a&nbsp;different&nbsp;port&nbsp;configuration&nbsp;use&nbsp;the&nbsp;<a href="#-flip">flip</a>()&nbsp;fuction<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a:&nbsp;a&nbsp;2x2&nbsp;or&nbsp;kx2x2&nbsp;s-matrix<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b:&nbsp;a&nbsp;2x2,&nbsp;kx2x2,&nbsp;1x1,&nbsp;or&nbsp;kx1x1&nbsp;s-matrix&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BE&nbsp;AWARE!&nbsp;this&nbsp;relies&nbsp;on&nbsp;s2t&nbsp;function&nbsp;which&nbsp;has&nbsp;a&nbsp;inf&nbsp;problem&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;s11&nbsp;or&nbsp;s22&nbsp;is&nbsp;1.</tt></dd></dl>
 <dl><dt><a name="-connect"><strong>connect</strong></a>(ntwkA, k, ntwkB, l)</dt><dd><tt>connect&nbsp;two&nbsp;n-port&nbsp;networks&nbsp;together.&nbsp;specifically,&nbsp;connect&nbsp;port&nbsp;'k'<br>
on&nbsp;ntwkA&nbsp;to&nbsp;port&nbsp;'l'&nbsp;on&nbsp;ntwkB.&nbsp;The&nbsp;resultant&nbsp;network&nbsp;has<br>
(ntwkA.nports+ntwkB.nports&nbsp;-2)&nbsp;ports.&nbsp;The&nbsp;port&nbsp;index's&nbsp;('k','l')&nbsp;<br>
start&nbsp;from&nbsp;0.&nbsp;Port&nbsp;impedances&nbsp;are&nbsp;taken&nbsp;into&nbsp;account.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwkA:&nbsp;network&nbsp;'A',&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;k:&nbsp;port&nbsp;index&nbsp;on&nbsp;ntwkA&nbsp;[int]&nbsp;(&nbsp;port&nbsp;indecies&nbsp;start&nbsp;from&nbsp;0&nbsp;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwkB:&nbsp;network&nbsp;'B',&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l:&nbsp;port&nbsp;index&nbsp;on&nbsp;ntwkB&nbsp;[int]<br>
&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwkC':&nbsp;new&nbsp;network&nbsp;of&nbsp;rank&nbsp;(ntwkA.nports+ntwkB.nports&nbsp;-2)-ports<br>
&nbsp;<br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see&nbsp;functions&nbsp;<a href="#-connect_s">connect_s</a>()&nbsp;and&nbsp;<a href="#-innerconnect_s">innerconnect_s</a>()&nbsp;for&nbsp;actual&nbsp;<br>
S-parameter&nbsp;connection&nbsp;algorithm.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;effect&nbsp;of&nbsp;mis-matched&nbsp;port&nbsp;impedances&nbsp;is&nbsp;handled&nbsp;by&nbsp;inserting<br>
a&nbsp;2-port&nbsp;'mismatch'&nbsp;network&nbsp;between&nbsp;the&nbsp;two&nbsp;connected&nbsp;ports.</tt></dd></dl>
 <dl><dt><a name="-connect_s"><strong>connect_s</strong></a>(S, k, T, l)</dt><dd><tt>connect&nbsp;two&nbsp;n-port&nbsp;networks&nbsp;together.&nbsp;specifically,&nbsp;connect&nbsp;port&nbsp;'k'<br>
on&nbsp;network&nbsp;'S'&nbsp;to&nbsp;port&nbsp;'l'&nbsp;on&nbsp;network&nbsp;'T'.&nbsp;The&nbsp;resultant&nbsp;network&nbsp;has<br>
(S.rank&nbsp;+&nbsp;T.rank-2)-ports<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S:&nbsp;S-parameter&nbsp;matrix&nbsp;[numpy.ndarray].<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;k:&nbsp;port&nbsp;index&nbsp;on&nbsp;S&nbsp;(port&nbsp;indecies&nbsp;start&nbsp;from&nbsp;0)&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;T:&nbsp;S-parameter&nbsp;matrix&nbsp;[numpy.ndarray]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l:&nbsp;port&nbsp;index&nbsp;on&nbsp;T&nbsp;[int]<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S':&nbsp;new&nbsp;S-parameter&nbsp;matrix&nbsp;[numpy.ndarry]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
note:&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shape&nbsp;of&nbsp;S-parameter&nbsp;matrices&nbsp;can&nbsp;be&nbsp;either&nbsp;nxn,&nbsp;or&nbsp;fxnxn,&nbsp;where<br>
f&nbsp;is&nbsp;the&nbsp;frequency&nbsp;axis.&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;internally,&nbsp;this&nbsp;function&nbsp;creates&nbsp;a&nbsp;larger&nbsp;composite&nbsp;network&nbsp;<br>
and&nbsp;calls&nbsp;the&nbsp;&nbsp;<a href="#-innerconnect">innerconnect</a>()&nbsp;function.&nbsp;see&nbsp;that&nbsp;function&nbsp;for&nbsp;more&nbsp;<br>
details&nbsp;about&nbsp;the&nbsp;implementation</tt></dd></dl>
 <dl><dt><a name="-csv_2_touchstone"><strong>csv_2_touchstone</strong></a>(filename)</dt><dd><tt>converts&nbsp;a&nbsp;csv&nbsp;file&nbsp;saved&nbsp;from&nbsp;a&nbsp;Rhode&nbsp;swarz&nbsp;and&nbsp;possibly&nbsp;other&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filename:&nbsp;name&nbsp;of&nbsp;file<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#Network">Network</a>&nbsp;<a href="__builtin__.html#object">object</a></tt></dd></dl>
 <dl><dt><a name="-de_embed"><strong>de_embed</strong></a>(a, b)</dt><dd><tt>de-embed&nbsp;a&nbsp;2x2&nbsp;s-matrix&nbsp;from&nbsp;another&nbsp;2x2&nbsp;s-matrix<br>
&nbsp;<br>
c&nbsp;=&nbsp;b**-1&nbsp;*&nbsp;a<br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BE&nbsp;AWARE!&nbsp;this&nbsp;relies&nbsp;on&nbsp;s2t&nbsp;function&nbsp;which&nbsp;has&nbsp;a&nbsp;inf&nbsp;problem&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;s11&nbsp;or&nbsp;s22&nbsp;is&nbsp;1.</tt></dd></dl>
 <dl><dt><a name="-flip"><strong>flip</strong></a>(a)</dt><dd><tt>invert&nbsp;the&nbsp;ports&nbsp;of&nbsp;a&nbsp;networks&nbsp;s-matrix,&nbsp;'flipping'&nbsp;it&nbsp;over<br>
&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;only&nbsp;works&nbsp;for&nbsp;2-ports&nbsp;at&nbsp;the&nbsp;moment</tt></dd></dl>
 <dl><dt><a name="-fon"><strong>fon</strong></a> = func_on_networks(ntwk_list, func, attribute<font color="#909090">='s'</font>, *args, **kwargs)</dt><dd><tt>Applies&nbsp;a&nbsp;function&nbsp;to&nbsp;some&nbsp;attribute&nbsp;of&nbsp;aa&nbsp;list&nbsp;of&nbsp;networks,&nbsp;and&nbsp;<br>
returns&nbsp;the&nbsp;result&nbsp;in&nbsp;the&nbsp;form&nbsp;of&nbsp;a&nbsp;<a href="#Network">Network</a>.&nbsp;This&nbsp;means&nbsp;information&nbsp;<br>
that&nbsp;may&nbsp;not&nbsp;be&nbsp;s-parameters&nbsp;is&nbsp;stored&nbsp;in&nbsp;the&nbsp;s-matrix&nbsp;of&nbsp;the<br>
returned&nbsp;<a href="#Network">Network</a>.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk_list:&nbsp;list&nbsp;of&nbsp;mwavepy.<a href="#Network">Network</a>&nbsp;types<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func:&nbsp;function&nbsp;to&nbsp;operate&nbsp;on&nbsp;ntwk_list&nbsp;s-matrices<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute:&nbsp;attribute&nbsp;of&nbsp;<a href="#Network">Network</a>'s&nbsp;&nbsp;in&nbsp;ntwk_list&nbsp;for&nbsp;func&nbsp;to&nbsp;act&nbsp;on<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args:&nbsp;passed&nbsp;to&nbsp;func<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**kwargs:&nbsp;passed&nbsp;to&nbsp;func<br>
&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mwavepy.<a href="#Network">Network</a>&nbsp;type,&nbsp;with&nbsp;s-matrix&nbsp;the&nbsp;result&nbsp;of&nbsp;func,&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operating&nbsp;on&nbsp;ntwk_list's&nbsp;s-matrices<br>
&nbsp;<br>
&nbsp;<br>
example:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;averaging&nbsp;can&nbsp;be&nbsp;implemented&nbsp;with&nbsp;func_on_networks&nbsp;by&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-func_on_networks">func_on_networks</a>(ntwk_list,mean)</tt></dd></dl>
 <dl><dt><a name="-func_on_networks"><strong>func_on_networks</strong></a>(ntwk_list, func, attribute<font color="#909090">='s'</font>, *args, **kwargs)</dt><dd><tt>Applies&nbsp;a&nbsp;function&nbsp;to&nbsp;some&nbsp;attribute&nbsp;of&nbsp;aa&nbsp;list&nbsp;of&nbsp;networks,&nbsp;and&nbsp;<br>
returns&nbsp;the&nbsp;result&nbsp;in&nbsp;the&nbsp;form&nbsp;of&nbsp;a&nbsp;<a href="#Network">Network</a>.&nbsp;This&nbsp;means&nbsp;information&nbsp;<br>
that&nbsp;may&nbsp;not&nbsp;be&nbsp;s-parameters&nbsp;is&nbsp;stored&nbsp;in&nbsp;the&nbsp;s-matrix&nbsp;of&nbsp;the<br>
returned&nbsp;<a href="#Network">Network</a>.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk_list:&nbsp;list&nbsp;of&nbsp;mwavepy.<a href="#Network">Network</a>&nbsp;types<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func:&nbsp;function&nbsp;to&nbsp;operate&nbsp;on&nbsp;ntwk_list&nbsp;s-matrices<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute:&nbsp;attribute&nbsp;of&nbsp;<a href="#Network">Network</a>'s&nbsp;&nbsp;in&nbsp;ntwk_list&nbsp;for&nbsp;func&nbsp;to&nbsp;act&nbsp;on<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args:&nbsp;passed&nbsp;to&nbsp;func<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**kwargs:&nbsp;passed&nbsp;to&nbsp;func<br>
&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mwavepy.<a href="#Network">Network</a>&nbsp;type,&nbsp;with&nbsp;s-matrix&nbsp;the&nbsp;result&nbsp;of&nbsp;func,&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;operating&nbsp;on&nbsp;ntwk_list's&nbsp;s-matrices<br>
&nbsp;<br>
&nbsp;<br>
example:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;averaging&nbsp;can&nbsp;be&nbsp;implemented&nbsp;with&nbsp;func_on_networks&nbsp;by&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-func_on_networks">func_on_networks</a>(ntwk_list,mean)</tt></dd></dl>
 <dl><dt><a name="-impedance_mismatch"><strong>impedance_mismatch</strong></a>(z1, z2)</dt><dd><tt>returns&nbsp;a&nbsp;two-port&nbsp;network&nbsp;for&nbsp;a&nbsp;impedance&nbsp;mis-match<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;z1:&nbsp;complex&nbsp;impedance&nbsp;of&nbsp;port&nbsp;1&nbsp;[&nbsp;number,&nbsp;list,&nbsp;or&nbsp;1D&nbsp;ndarray]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;z2:&nbsp;complex&nbsp;impedance&nbsp;of&nbsp;port&nbsp;2&nbsp;[&nbsp;number,&nbsp;list,&nbsp;or&nbsp;1D&nbsp;ndarray]<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2-port&nbsp;s-matrix&nbsp;for&nbsp;the&nbsp;impedance&nbsp;mis-match</tt></dd></dl>
 <dl><dt><a name="-innerconnect"><strong>innerconnect</strong></a>(ntwkA, k, l)</dt><dd><tt>connect&nbsp;two&nbsp;ports&nbsp;of&nbsp;a&nbsp;single&nbsp;n-port&nbsp;network,&nbsp;resulting&nbsp;in&nbsp;a&nbsp;<br>
(n-2)-port&nbsp;network.&nbsp;port&nbsp;indecies&nbsp;start&nbsp;from&nbsp;0.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk:&nbsp;the&nbsp;network.&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;k:&nbsp;port&nbsp;index&nbsp;[int]&nbsp;(port&nbsp;indecies&nbsp;start&nbsp;from&nbsp;0)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l:&nbsp;port&nbsp;index&nbsp;[int]<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk':&nbsp;new&nbsp;network&nbsp;of&nbsp;with&nbsp;n-2&nbsp;ports.&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
note:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see&nbsp;functions&nbsp;<a href="#-connect_s">connect_s</a>()&nbsp;and&nbsp;<a href="#-innerconnect_s">innerconnect_s</a>()&nbsp;for&nbsp;actual&nbsp;<br>
S-parameter&nbsp;connection&nbsp;algorithm.</tt></dd></dl>
 <dl><dt><a name="-innerconnect_s"><strong>innerconnect_s</strong></a>(S, k, l)</dt><dd><tt>connect&nbsp;two&nbsp;ports&nbsp;of&nbsp;a&nbsp;single&nbsp;n-port&nbsp;network,&nbsp;resulting&nbsp;in&nbsp;a&nbsp;<br>
(n-2)-port&nbsp;network.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S:&nbsp;S-parameter&nbsp;matrix&nbsp;[numpy.ndarray]&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;k:&nbsp;port&nbsp;index&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;l:&nbsp;port&nbsp;index&nbsp;[int]<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S':&nbsp;new&nbsp;S-parameter&nbsp;matrix&nbsp;[numpy.ndarry]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
This&nbsp;function&nbsp;is&nbsp;based&nbsp;on&nbsp;the&nbsp;algorithm&nbsp;presented&nbsp;in&nbsp;the&nbsp;paper:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Perspectives&nbsp;in&nbsp;Microwave&nbsp;Circuit&nbsp;Analysis'&nbsp;by&nbsp;R.&nbsp;C.&nbsp;Compton<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;D.&nbsp;B.&nbsp;Rutledge<br>
The&nbsp;original&nbsp;algorithm&nbsp;is&nbsp;given&nbsp;in&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'A&nbsp;NEW&nbsp;GENERAL&nbsp;COMPUTER&nbsp;ALGORITHM&nbsp;FOR&nbsp;S-MATRIX&nbsp;CALCULATION&nbsp;OF<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;INTERCONNECTED&nbsp;MULTIPORTS'&nbsp;by&nbsp;Gunnar&nbsp;Filipsson</tt></dd></dl>
 <dl><dt><a name="-inv"><strong>inv</strong></a>(s)</dt><dd><tt>inverse&nbsp;s-parameters,&nbsp;used&nbsp;for&nbsp;de-embeding</tt></dd></dl>
 <dl><dt><a name="-load_all_touchstones"><strong>load_all_touchstones</strong></a>(dir<font color="#909090">='.'</font>, contains<font color="#909090">=None</font>, f_unit<font color="#909090">=None</font>)</dt><dd><tt>loads&nbsp;all&nbsp;touchtone&nbsp;files&nbsp;in&nbsp;a&nbsp;given&nbsp;dir&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dir&nbsp;&nbsp;-&nbsp;the&nbsp;path&nbsp;to&nbsp;the&nbsp;dir,&nbsp;passed&nbsp;as&nbsp;a&nbsp;string&nbsp;(defalut&nbsp;is&nbsp;cwd)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contains&nbsp;-&nbsp;string&nbsp;which&nbsp;filename&nbsp;must&nbsp;contain&nbsp;to&nbsp;be&nbsp;loaded,&nbsp;not&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;used&nbsp;if&nbsp;None.(default&nbsp;None)<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwkDict&nbsp;-&nbsp;a&nbsp;Dictonary&nbsp;with&nbsp;keys&nbsp;equal&nbsp;to&nbsp;the&nbsp;file&nbsp;name&nbsp;(without<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;suffix),&nbsp;and&nbsp;values&nbsp;equal&nbsp;to&nbsp;the&nbsp;corresponding&nbsp;ntwk&nbsp;types</tt></dd></dl>
 <dl><dt><a name="-one_port_2_two_port"><strong>one_port_2_two_port</strong></a>(ntwk)</dt><dd><tt>calculates&nbsp;the&nbsp;two-port&nbsp;network&nbsp;given&nbsp;a&nbsp;&nbsp;symetric,&nbsp;reciprocal&nbsp;and&nbsp;<br>
lossless&nbsp;one-port&nbsp;network.<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk:&nbsp;a&nbsp;symetric,&nbsp;reciprocal&nbsp;and&nbsp;lossless&nbsp;one-port&nbsp;network.<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk:&nbsp;the&nbsp;resultant&nbsp;two-port&nbsp;<a href="#Network">Network</a></tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds"><strong>plot_uncertainty_bounds</strong></a>(ntwk_list, attribute<font color="#909090">='s_mag'</font>, m<font color="#909090">=0</font>, n<font color="#909090">=0</font>, n_deviations<font color="#909090">=3</font>, alpha<font color="#909090">=0.3</font>, fill_color<font color="#909090">='b'</font>, std_attribute<font color="#909090">=None</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;mean&nbsp;value&nbsp;with&nbsp;+-&nbsp;uncertainty&nbsp;bounds&nbsp;in&nbsp;an&nbsp;<a href="#Network">Network</a>&nbsp;attribute,<br>
for&nbsp;a&nbsp;list&nbsp;of&nbsp;Networks.&nbsp;<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk_list:&nbsp;list&nbsp;of&nbsp;Netmwork&nbsp;types&nbsp;[list]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute:&nbsp;attribute&nbsp;of&nbsp;<a href="#Network">Network</a>&nbsp;type&nbsp;to&nbsp;analyze&nbsp;[string]&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m:&nbsp;first&nbsp;index&nbsp;of&nbsp;attribute&nbsp;matrix&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n:&nbsp;second&nbsp;index&nbsp;of&nbsp;attribute&nbsp;matrix&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_deviations:&nbsp;number&nbsp;of&nbsp;std&nbsp;deviations&nbsp;to&nbsp;plot&nbsp;as&nbsp;bounds&nbsp;[number]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alpha:&nbsp;passed&nbsp;to&nbsp;matplotlib.fill_between()&nbsp;command.&nbsp;[number,&nbsp;0-1]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs:&nbsp;passed&nbsp;to&nbsp;<a href="#Network">Network</a>.plot_'attribute'&nbsp;command<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
Caution:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;your&nbsp;list_of_networks&nbsp;is&nbsp;for&nbsp;a&nbsp;calibrated&nbsp;short,&nbsp;then&nbsp;the&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;std&nbsp;dev&nbsp;of&nbsp;deg_unwrap&nbsp;might&nbsp;blow&nbsp;up,&nbsp;because&nbsp;even&nbsp;though&nbsp;each<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;network&nbsp;is&nbsp;unwrapped,&nbsp;they&nbsp;may&nbsp;fall&nbsp;on&nbsp;either&nbsp;side&nbsp;fo&nbsp;the&nbsp;pi&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;relative&nbsp;to&nbsp;one&nbsp;another.</tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds_s_db"><strong>plot_uncertainty_bounds_s_db</strong></a>(ntwk_list, attribute<font color="#909090">='s_mag'</font>, m<font color="#909090">=0</font>, n<font color="#909090">=0</font>, n_deviations<font color="#909090">=3</font>, alpha<font color="#909090">=0.3</font>, fill_color<font color="#909090">='b'</font>, *args, **kwargs)</dt><dd><tt>plots&nbsp;mean&nbsp;value&nbsp;with&nbsp;+-&nbsp;uncertainty&nbsp;bounds&nbsp;in&nbsp;an&nbsp;<a href="#Network">Network</a>'s&nbsp;attribute<br>
for&nbsp;a&nbsp;list&nbsp;of&nbsp;Networks.<br>
&nbsp;<br>
This&nbsp;is&nbsp;plotted&nbsp;on&nbsp;a&nbsp;log&nbsp;scale&nbsp;(db),&nbsp;but&nbsp;uncertainty&nbsp;is&nbsp;calculated&nbsp;<br>
in&nbsp;the&nbsp;linear&nbsp;domain<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk_list:&nbsp;list&nbsp;of&nbsp;Netmwork&nbsp;types&nbsp;[list]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute:&nbsp;attribute&nbsp;of&nbsp;<a href="#Network">Network</a>&nbsp;type&nbsp;to&nbsp;analyze&nbsp;[string]&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m:&nbsp;first&nbsp;index&nbsp;of&nbsp;attribute&nbsp;matrix&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n:&nbsp;second&nbsp;index&nbsp;of&nbsp;attribute&nbsp;matrix&nbsp;[int]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n_deviations:&nbsp;number&nbsp;of&nbsp;std&nbsp;deviations&nbsp;to&nbsp;plot&nbsp;as&nbsp;bounds&nbsp;[number]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alpha:&nbsp;passed&nbsp;to&nbsp;matplotlib.fill_between()&nbsp;command.&nbsp;[number,&nbsp;0-1]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*args,**kwargs:&nbsp;passed&nbsp;to&nbsp;<a href="#Network">Network</a>.plot_'attribute'&nbsp;command<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;None<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;<br>
Caution:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;your&nbsp;list_of_networks&nbsp;is&nbsp;for&nbsp;a&nbsp;calibrated&nbsp;short,&nbsp;then&nbsp;the&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;std&nbsp;dev&nbsp;of&nbsp;deg_unwrap&nbsp;might&nbsp;blow&nbsp;up,&nbsp;because&nbsp;even&nbsp;though&nbsp;each<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;network&nbsp;is&nbsp;unwrapped,&nbsp;they&nbsp;may&nbsp;fall&nbsp;on&nbsp;either&nbsp;side&nbsp;fo&nbsp;the&nbsp;pi&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;relative&nbsp;to&nbsp;one&nbsp;another.</tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds_s_deg"><strong>plot_uncertainty_bounds_s_deg</strong></a>(*args, **kwargs)</dt><dd><tt>this&nbsp;just&nbsp;calls&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-plot_uncertainty_bounds">plot_uncertainty_bounds</a>(attribute=&nbsp;'s_deg_unwrap',*args,**kwargs)<br>
see&nbsp;plot_uncertainty_bounds&nbsp;for&nbsp;help<br>
&nbsp;<br>
note;&nbsp;the&nbsp;attribute&nbsp;'s_deg_unwrap'&nbsp;is&nbsp;called&nbsp;on&nbsp;purpose&nbsp;to&nbsp;alleviate<br>
the&nbsp;phase&nbsp;wraping&nbsp;effects&nbsp;on&nbsp;std&nbsp;dev.&nbsp;if&nbsp;you&nbsp;DO&nbsp;want&nbsp;to&nbsp;look&nbsp;at&nbsp;<br>
's_deg'&nbsp;and&nbsp;not&nbsp;'s_deg_unwrap'&nbsp;then&nbsp;use&nbsp;plot_uncertainty_bounds</tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds_s_im"><strong>plot_uncertainty_bounds_s_im</strong></a>(*args, **kwargs)</dt><dd><tt>this&nbsp;just&nbsp;calls&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-plot_uncertainty_bounds">plot_uncertainty_bounds</a>(attribute=&nbsp;'s_im',*args,**kwargs)<br>
see&nbsp;plot_uncertainty_bounds&nbsp;for&nbsp;help</tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds_s_mag"><strong>plot_uncertainty_bounds_s_mag</strong></a>(*args, **kwargs)</dt><dd><tt>this&nbsp;just&nbsp;calls&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-plot_uncertainty_bounds">plot_uncertainty_bounds</a>(attribute=&nbsp;'s_mag',*args,**kwargs)<br>
see&nbsp;plot_uncertainty_bounds&nbsp;for&nbsp;help</tt></dd></dl>
 <dl><dt><a name="-plot_uncertainty_bounds_s_re"><strong>plot_uncertainty_bounds_s_re</strong></a>(*args, **kwargs)</dt><dd><tt>this&nbsp;just&nbsp;calls&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-plot_uncertainty_bounds">plot_uncertainty_bounds</a>(attribute=&nbsp;'s_re',*args,**kwargs)<br>
see&nbsp;plot_uncertainty_bounds&nbsp;for&nbsp;help</tt></dd></dl>
 <dl><dt><a name="-s2t"><strong>s2t</strong></a>(s)</dt><dd><tt>converts&nbsp;a&nbsp;scattering&nbsp;parameters&nbsp;to&nbsp;'wave&nbsp;cascading&nbsp;parameters'<br>
&nbsp;<br>
input&nbsp;matrix&nbsp;shape&nbsp;should&nbsp;be&nbsp;should&nbsp;be&nbsp;2x2,&nbsp;or&nbsp;kx2x2<br>
&nbsp;<br>
BUG:&nbsp;if&nbsp;s&nbsp;-matrix&nbsp;has&nbsp;ones&nbsp;for&nbsp;reflection,&nbsp;thsi&nbsp;will&nbsp;produce&nbsp;inf's<br>
you&nbsp;cant&nbsp;cascade&nbsp;a&nbsp;matrix&nbsp;like&nbsp;this&nbsp;anyway,&nbsp;but&nbsp;we&nbsp;should&nbsp;handle&nbsp;it&nbsp;<br>
better</tt></dd></dl>
 <dl><dt><a name="-t2s"><strong>t2s</strong></a>(t)</dt><dd><tt>converts&nbsp;a&nbsp;'wave&nbsp;cascading&nbsp;parameters'&nbsp;to&nbsp;scattering&nbsp;parameters&nbsp;<br>
&nbsp;<br>
input&nbsp;matrix&nbsp;shape&nbsp;should&nbsp;be&nbsp;should&nbsp;be&nbsp;2x2,&nbsp;or&nbsp;kx2x2</tt></dd></dl>
 <dl><dt><a name="-two_port_reflect"><strong>two_port_reflect</strong></a>(ntwk1, ntwk2, **kwargs)</dt><dd><tt>generates&nbsp;a&nbsp;two-port&nbsp;reflective&nbsp;(S21=S12=0)&nbsp;network,&nbsp;from&nbsp;the<br>
&nbsp;2&nbsp;one-port&nbsp;networks<br>
&nbsp;<br>
takes:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk1:&nbsp;<a href="#Network">Network</a>&nbsp;on&nbsp;&nbsp;port&nbsp;1&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ntwk2:&nbsp;<a href="#Network">Network</a>&nbsp;on&nbsp;&nbsp;port&nbsp;2&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;<br>
returns:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result:&nbsp;two-port&nbsp;reflective&nbsp;network,&nbsp;S12=S21=0&nbsp;[mwavepy.<a href="#Network">Network</a>]<br>
&nbsp;<br>
&nbsp;<br>
example:<br>
to&nbsp;use&nbsp;a&nbsp;working&nbsp;band&nbsp;to&nbsp;create&nbsp;a&nbsp;two-port&nbsp;reflective&nbsp;standard&nbsp;from<br>
two&nbsp;one-port&nbsp;standards<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;my_media=&nbsp;...<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#-two_port_reflect">two_port_reflect</a>(my_media.short(),&nbsp;my_media.match())</tt></dd></dl>
 <dl><dt><a name="-write_dict_of_networks"><strong>write_dict_of_networks</strong></a>(ntwkDict, dir<font color="#909090">='.'</font>)</dt><dd><tt>writes&nbsp;a&nbsp;dictionary&nbsp;of&nbsp;networks&nbsp;to&nbsp;a&nbsp;given&nbsp;directory</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>ALMOST_ZER0</strong> = 1e-06</td></tr></table>
</body></html>